package com.wavercaz.freeforum.mappers;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wavercaz.freeforum.pojo.CommonSearchParam;
import com.wavercaz.freeforum.pojo.Post;
import com.wavercaz.freeforum.pojo.vo.PostVo;
import org.apache.ibatis.annotations.Param;

public interface PostMapper extends BaseMapper<Post> {
    IPage<PostVo> getPostVoList(@Param("param") CommonSearchParam commonSearchParam, @Param("page") Page<PostVo> page);
}
